package com.learner.common.client.oss;

import com.learner.common.client.oss.hystrix.OssFileClientHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author ice2020x
 * @Date: 2023/3/8
 * @Description: 远程调用ossFileClient
 **/
@Service
@FeignClient(value = "ls-service-OSS", fallback = OssFileClientHystrix.class)
public interface OssFileClient {


    /**
     * 删除文件
     *
     * @param url url
     */
    @DeleteMapping("/api/oss/file/remove")
    void removeFile(@RequestBody String url);
}
